package com.cashmama.market.api.application.controller.message.response;

import com.cashmama.market.api.domain.vo.message.MessageListInfoVO;
import com.cashmama.market.api.domain.vo.message.MessageListVO;
import com.cashmama.market.api.infras.handler.ResponseData;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-26 15:04
 **/
public class MessageListInfoResponse implements ResponseData {
    private Boolean hasNextPage=false;

    private List<MessageListVO> messages=new ArrayList<>();

    private Boolean hasUnreadNotice=false;

    //private Boolean hasUnreadActivity;


    public MessageListInfoResponse() {
    }

    public MessageListInfoResponse(MessageListInfoVO messageListInfoVO) {
        this.hasNextPage = messageListInfoVO.getHasNextPage();
        this.messages = messageListInfoVO.getMessages();
        this.hasUnreadNotice = messageListInfoVO.getHasUnreadNotice();
    }

    public Boolean getHasNextPage() {
        return hasNextPage;
    }

    public MessageListInfoResponse setHasNextPage(Boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
        return this;
    }

    public List<MessageListVO> getMessages() {
        return messages;
    }

    public MessageListInfoResponse setMessages(List<MessageListVO> messages) {
        this.messages = messages;
        return this;
    }

    public Boolean getHasUnreadNotice() {
        return hasUnreadNotice;
    }

    public MessageListInfoResponse setHasUnreadNotice(Boolean hasUnreadNotice) {
        this.hasUnreadNotice = hasUnreadNotice;
        return this;
    }
}
